package day19.HomeWork;

public class Third {
    public static void main(String[] args) {
        Saidao gui = new Saidao("龟",100);
        Saidao tu = new Saidao("兔子",200);
        gui.start();
        tu.start();
    }
}

class Saidao extends Thread {
    private Integer miles;
private Integer speed;

    public Saidao(String name, Integer speed) {
        super(name);
        this.miles = 0;
        this.speed = speed;

    }

    @Override
    public void run() {
        int num=0;
while(miles<=1000){

}
    }
}